import request from '@/utils/request'

// 查询升班申请列表
export function listClassUpgrade(query) {
  return request({
    url: '/edu/classUpgrade/list',
    method: 'get',
    params: query
  })
}

// 查询升班申请详细
export function getClassUpgrade(upgradeId) {
  return request({
    url: '/edu/classUpgrade/' + upgradeId,
    method: 'get'
  })
}

// 新增升班申请
export function addClassUpgrade(data) {
  return request({
    url: '/edu/classUpgrade',
    method: 'post',
    data: data
  })
}

// 修改升班申请
export function updateClassUpgrade(data) {
  return request({
    url: '/edu/classUpgrade',
    method: 'put',
    data: data
  })
}

// 删除升班申请
export function delClassUpgrade(upgradeId) {
  return request({
    url: '/edu/classUpgrade/' + upgradeId,
    method: 'delete'
  })
}

// 导出升班申请
export function exportClassUpgrade(query) {
  return request({
    url: '/edu/classUpgrade/export',
    method: 'get',
    params: query
  })
}

export function classUpgradeAccess(query) {
  return request({
    url: '/edu/classUpgrade/access',
    method: 'post',
    params: query
  })
}

export function classUpgradeReject(query) {
  return request({
    url: '/edu/classUpgrade/reject',
    method: 'post',
    params: query
  })
}